package xjtu.sad.zbsj.task.annotater.labelTask;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TaskInfo {

    private Integer taskId;//任务id
    private String publisher;//发布人名称
    private Integer publisherId;//发布人id
    private Integer taskStatus;//任务状态
    private Integer templateId;//模板信息
    private String taskTitle;//任务标题
    private String taskDesc;//任务描述
    private Integer limitTime; //每次领取的时间限制,默认单位为天

    private String taskKind;// 任务标签
    private String taskAward;// 任务奖励
    private String taskRequire;// 任务需求
    private Integer contentCount;// 当前任务有多少个样本待标注
    private Integer markCount;// 需要被标记的次数
    private String fileName;//结果文件的名称

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GTM+8")
    private Date taskPublishTime;// 任务发布时间

    private Integer taskExceptionTime;// 最短异常时间

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(Integer publisherId) {
        this.publisherId = publisherId;
    }

    public Integer getContentCount() {
        return contentCount;
    }

    public void setContentCount(Integer contentCount) {
        this.contentCount = contentCount;
    }

    public Integer getMarkCount() {
        return markCount;
    }

    public void setMarkCount(Integer markCount) {
        this.markCount = markCount;
    }

    public Integer getTaskExceptionTime() {
        return taskExceptionTime;
    }

    public void setTaskExceptionTime(Integer taskExceptionTime) {
        this.taskExceptionTime = taskExceptionTime;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getTaskPublishTime() {
        return taskPublishTime;
    }

    public void setTaskPublishTime(Date taskPublishTime) {
        this.taskPublishTime = taskPublishTime;
    }

    public String getPublisherName() {
        return publisher;
    }

    public void setPublisherName(String publisher) {
        this.publisher = publisher;
    }

    public String getTaskKind() {
        return taskKind;
    }

    public void setTaskKind(String taskKind) {
        this.taskKind = taskKind;
    }

    public String getTaskAward() {
        return taskAward;
    }

    public void setTaskAward(String taskAward) {
        this.taskAward = taskAward;
    }

    public String getTaskRequire() {
        return taskRequire;
    }

    public void setTaskRequire(String taskRequire) {
        this.taskRequire = taskRequire;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }


    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getTaskTitle() {
        return taskTitle;
    }

    public void setTaskTitle(String taskTitle) {
        this.taskTitle = taskTitle;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public Integer getLimitTime() {
        return limitTime;
    }

    public void setLimitTime(Integer limitTime) {
        this.limitTime = limitTime;
    }

    @Override
    public String toString() {
        return "TaskInfo{" +
                "taskId=" + taskId +
                ", publisher='" + publisher + '\'' +
                ", publisherId=" + publisherId +
                ", taskStatus=" + taskStatus +
                ", templateId=" + templateId +
                ", taskTitle='" + taskTitle + '\'' +
                ", taskDesc='" + taskDesc + '\'' +
                ", limitTime=" + limitTime +
                ", taskKind='" + taskKind + '\'' +
                ", taskAward='" + taskAward + '\'' +
                ", taskRequire='" + taskRequire + '\'' +
                ", contentCount=" + contentCount +
                ", markCount=" + markCount +
                ", taskPublishTime=" + taskPublishTime +
                ", taskExceptionTime=" + taskExceptionTime +
                '}';
    }
}
